package com.ruoyi.manage.threadLocal;

public class UserThreadLocal {

    public static final ThreadLocal<String> tl = new ThreadLocal<>();

    public static String getUsername(){
        return tl.get();
    }

    public static void setUsername(String username){
        tl.set(username);
    }

    public static void removeUsername(){
        tl.remove();
    }

}
